git clone 远程仓库报错error setting certificate verify locations

系统:windows10

今天从github上克隆项目时报错:

原因:

1.git配置没有修改

之前配置的是公司gitlab账号的信息,和我当前要克隆的github的配置信息不同,没有注意修改

2.执行以下命令:

git config --system http.sslverify false

 修改后即可成功克隆

参考地址:http://stackoverflow.com/questions/3778042/github-error-cloning-my-private-repository

该处提供两种方案,

  1.

git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"

  2.

git config --system http.sslverify false

  均会修改git的配置文件: [git-install-dir]/etc/gitconfig file

 

由于直接测试第二种就解决问题了,所以没有验证第一种方法是否有效

 

posted @ 2017-02-09 22:08  程序小工  阅读(1141)  评论(0编辑  收藏  举报